module System::OrgHelper

  def org_name(org_id)
    org = User.find_by_id org_id
    org ? org.name : "已停用"
  end
  
  def org_username(org_id)
    org = User.find_by_id org_id
    org ? "(#{org.username})" : ""
  end
end
